<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
</body>
<script>

var obj = {
    name:"张三",
    age:28,
    sex:"男",
    hobby:["篮球","rap","足球"],
    sayHello:function(){
        console.log("hello,我叫"+ ojb.name);
    },
    children:{
        name:"小张三",
        age:2,
        sex:"女",
        sayHello:function(){
        console.log("hi");
        return "hi";
    }     
    }
}
console.log(obj);
console.log(obj.sex);
console.log(obj.job);
ojb.job = "程序员";
// console.log(obj.job);
// console.log(ojb.age);
// obj.age = obj.age + 1;
// console.log(obj.age)











   

</script>


</html>